<script setup lang="ts">
import {defineProps} from "vue";
import {TextMaterialType} from "@/data-type/material.type";

const props = defineProps<{material:TextMaterialType}>();
  const text = {
    type: 'text',
    props: {
      content: '文本物料'
    }
  }
</script>

<template>
  <div class="zhtt-material-text">
    {{props.material?.props?.content || text.props.content}}
  </div>
</template>

<style scoped>

</style>
